package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ImportResource;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * .
 *
 * @author Li Zhiyuan
 * @since 2020/9/3
 */
@SpringBootApplication(scanBasePackages = {"com.example.demo.*"})
//@MapperScan("com.example.demo.repository")
@EnableSwagger2
@ServletComponentScan
@ImportResource(locations = {"classpath:kaptcha/kaptcha.xml"})
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
